<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});


Route::group(['prefix'=>'api'], function () {
    Route::get('/test/{id}',[\App\Http\Controllers\TestController::class, 'index']);
//    Route::get('/test/{id}',[\App\Http\Controllers\TestController::class, 'index'])->name('profile');//获取路由url，控制器route('profile', ['id' => $id])获取

});
//测试服务提供
Route::get('test1',[\App\Http\Controllers\TestController::class,'test1']);
//队列
Route::get('test/queue',[\App\Http\Controllers\TestController::class,'testQueue']);

Route::get('/form',[\App\Http\Controllers\TestController::class,'form']);
Route::post('/test/receive',[\App\Http\Controllers\TestController::class,'receive']);


